//
//  main.c
//  2_9
//
//  Created by apple on 16/10/12.
//  Copyright © 2016年 apple. All rights reserved.
//


#include <stdio.h>
int main(void)
{
    double x,y,z,w,m,j,h;
    printf("请输入x的值:");
    scanf("%lf",&x);
    printf("请输入y的值:");
    scanf("%lf",&y);
    z=x+y;
    w=x-y;
    m=x*y;
    j=x/y;
    printf("和＝%lf",z);
    printf("差＝%lf",w);
    printf("积＝%lf",m);
    printf("商＝%lf",j);
    int x1;
    int y1;
    x1=(int)x;
    y1=(int)y;
    h=x1%y1;
    printf("余＝%d",(int)h);
    return 0;
    
}
